package com.pine.sunshineelder.common.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SelectDao<T,ID> {
	 T selectById(@Param("id")ID id) throws Exception;
	 List<T> selectAll() throws Exception;
	 List<T> selectByKey(@Param("key")String key,@Param("pageNum")int pageNo,@Param("pageSize")int pageSize)throws Exception;
	 boolean selectExist(@Param("col")String col,@Param("o")Object o) throws Exception;
}
